<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterWithdrawAddFrom extends Migrator
{
    public function up()
    {
         $sql = <<<SQL
ALTER TABLE `agent_withdraw`
ADD COLUMN `from`  tinyint(1) NOT NULL DEFAULT 1 COMMENT '发起提现1 惠充平台 2 有美生活' ;
SQL;

         $this->execute($sql);

    }
    public function down()
    {
        $this->table('agent_withdraw')
            ->removeColumn('from');
    }
}
